/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package xmarti.vacaxm.client.maintenance.auxiliar;

import xmarti.vacaxm.utils.TDSLanguageUtils;
import xmarti.vacaxm.utils.ValidarText;

/**
 *
 * @author xmarti
 */
public class JPAuxiliarData extends javax.swing.JPanel {

    /**
     * Creates new form JPStateData
     */
    public JPAuxiliarData() {
        initComponents();        
        this.jTextName.setDocument(new ValidarText(12));       
    }
    public String getNameAuxiliar(){
        return this.jTextName.getText();        
    }
    public void setNameAuxiliar(String name){
        this.jTextName.setText(name);        
    }
    public String getDescription (){
        return this.jTextDescription.getText();
    }
    public void setDescription(String description){
        this.jTextDescription.setText(description);
    }
   
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelCaptionName = new javax.swing.JLabel();
        jTextName = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextDescription = new javax.swing.JTextArea();
        jLabelDescription = new javax.swing.JLabel();

        setLayout(null);

        jLabelCaptionName.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabelCaptionName.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelCaptionName.setText(TDSLanguageUtils.getMessage("jPanelAuxiliar.JLabel.name.caption"));
        add(jLabelCaptionName);
        jLabelCaptionName.setBounds(10, 11, 110, 33);

        jTextName.setBackground(new java.awt.Color(255, 255, 204));
        jTextName.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jTextName.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextName.setAlignmentX(0.0F);
        jTextName.setAlignmentY(0.0F);
        add(jTextName);
        jTextName.setBounds(124, 11, 196, 33);

        jTextDescription.setColumns(20);
        jTextDescription.setRows(5);
        jScrollPane1.setViewportView(jTextDescription);

        add(jScrollPane1);
        jScrollPane1.setBounds(124, 54, 437, 53);

        jLabelDescription.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabelDescription.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelDescription.setText(TDSLanguageUtils.getMessage("jPanelAuxiliar.JLabel.description.caption"));
        add(jLabelDescription);
        jLabelDescription.setBounds(10, 54, 110, 33);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabelCaptionName;
    private javax.swing.JLabel jLabelDescription;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextDescription;
    private javax.swing.JTextField jTextName;
    // End of variables declaration//GEN-END:variables
}
